package com.xy.smartplatfrom.mapper;

import com.xy.smartplatfrom.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {

    void addCategory(Category category);

    int updateCategory(Category category);

    Category selectById(Long cId);

    Category selectByName(String cName);

    List<Category> selectAllCategory();

    List<Category> selectAllEnableCategory();

    List<Category> selectCategoryByNameLike(String cName);

    int deleteCategoryByIds(@Param("ids") List<Long> ids);
}
